package springboot.test3.demo.config.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @版本号 1.0
 * @开发者: dongdq
 * @创建时间: 2021/11/15 11:42
 * @Content:
 */
@Aspect
@Component
public class AopConfig {
    //private static final Logger logger= LoggerFactory.getLogger(AopConfig.class);

    @Pointcut("execution(* springboot.test3.demo.controller..*.*(..))")
    public void loginPointcut() {}

    @Before("loginPointcut()")
    public void loginBefore(){
        System.out.println("成功了");
    }
}
